namespace cpputils
{

class binomial_batch_calculator
{
public:
	void clear();
	double operator()(int N, int M);

private:
	vector<vector<double> > Data;

	void add_line();
};

vector<int> decompose_primes(int N);
double compute_binomial(int N, int M);

}
